<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>应用首页</title>
    <script src="http://cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
    <link href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="http://echarts.baidu.com/build/dist/echarts.js"></script>
    <script src="http://echarts.baidu.com/build/dist/echarts-all.js"></script>

    <script src="{{ url_for('static', filename='js/index.js') }}"></script>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/index.css') }}">

</head>
<body>
<div class="container">
    <ul>
        <a href="{{ url_for('front.allfriends') }}">获取所有微信好友</a>
        {% if all_friends %}
            <p>您一共有<span style="color: red">{{ all_friends[0] }}</span>位好友</p>
            <p>有<span style="color: red">{{ all_friends[1]|length }}</span>位已把你删除</p>
        {% endif %}
    </ul>
    <ul>
        <a href="{{ url_for('front.friendslocal') }}">获取微信好友分布</a>
        {% if local_data %}
            <div id="local-chart" style="height:400px;margin: 20px" data-local="{{ local_data }}"
                 data-url="friendslocal"></div>
        {% endif %}
    </ul>
    <ul>
        <a href="{{ url_for('front.allfriendsavatar') }}">获取所有微信好友头像</a>
        {% if is_show_avatar %}
            <img class="avatar_img" src="{{ url_for('static', filename='all.png') }}">
        {% endif %}
    </ul>
    <ul>
        <a href="{{ url_for('front.friendssex') }}">获取微信用户所占比例</a>
        {% if sex_dict %}
            <div id="sex-chart" style="height:400px;margin: 20px" data-male="{{ sex_dict['male'] }}"
                 data-female="{{ sex_dict['female'] }}" data-url="friendssex"></div>
        {% endif %}
    </ul>
    <ul>
        <a href="{{ url_for('front.friendssign') }}">获取微信用户签名词云图</a>
        {% if is_show_wordclond %}
            <img class="wordclond_img" src="{{ url_for('static', filename='wordclond.png') }}">
        {% endif %}
    </ul>
    <ul>
        <a href="{{ url_for('front.getonemsg') }}">获取『 每日一图 』</a>
    </ul>
</div>
</body>
</html>